zernike(m, n) | zernike(j)
Generates a Zernike polynomial.
m: azimuthal order;n: radial degree;j: ANSI Z80.28-2004 / ISO 24157:2008 / Optica (OSA) standard single-mode ordering index.
Returns a Zernike.Output type which contains (among other things):
Z: thePolynomialfunctionZ(ρ, θ);fig: theMakieFigureAxisPlot;coeffs: vector of radial polynomial coefficients;latex:LaTeXstring of the Zernike polynomial;unicode:Unicodestring of the Zernike polynomial.
The coefficients belong to terms with exponent n − 2(i − 1) where i is the vector's index.
The radial polynomial coefficients are computed using a fast and accurate algorithm suitable for high orders; it is based on a recursive relation presented by Honarvar & Paramesran (2013).